package com.hailin.lease.web.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hailin.lease.model.entity.FacilityInfo;
import com.hailin.lease.model.entity.RoomFacility;
import com.hailin.lease.model.enums.ItemType;
import com.hailin.lease.web.admin.service.RoomFacilityService;
import com.hailin.lease.web.admin.mapper.RoomFacilityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author liubo
* @description 针对表【room_facility(房间&配套关联表)】的数据库操作Service实现
* @createDate 2023-07-24 15:48:00
*/
@Service
public class RoomFacilityServiceImpl extends ServiceImpl<RoomFacilityMapper, RoomFacility>
    implements RoomFacilityService{
    @Autowired
    private RoomFacilityMapper roomFacilityMapper;

    /**
     * 房间配套信息详细查询
     * @param itemType
     * @param id
     * @return
     */
    public List<FacilityInfo> getFacilityInfoList(Long id) {
        return roomFacilityMapper.getFacilityInfoList(id);
    }

}




